package com.games.CleanTheOffice;

import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageView;


public class Game extends Activity implements OnTouchListener {
    private float startingX;
    private float startingY;
    private float lastX;
    private float lastY;
    
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.game);
        
        View lol = findViewById(R.id.ball);        
        lol.setOnTouchListener(this);
    }

	@Override
	public boolean onTouch(View lol, MotionEvent event) {
		if(MotionEvent.ACTION_DOWN == event.getAction()){
			this.startingX = event.getX();
			this.startingY = event.getY();	
		}
		if(MotionEvent.ACTION_UP == event.getAction()){
			this.lastX = event.getX();
			this.lastY = event.getY();
			return true;
		}
		return false;
	}
}